if [ -z $1 ];then
    echo 'usage: ./remove_invalid_media.sh <MediaRootPath>'
else
    find $1 -type f -size -1024k |xargs echo >> invalid_media.list
    for FILE in `cat invalid_media.list`
        do
            rm $FILE
        done
fi
